<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%android_app_versions}}".
 *
 * @property int $id
 * @property string $v_number
 * @property string $v_title
 * @property string $v_content
 * @property string $notify 通知信息
 * @property string $interview 面签版本列表
 * @property string $other_download_u_ids 根据uid推送
 * @property string $black_user_list 黑名单用户列表
 * @property string $white_version_list 白名单版本列表
 * @property int $status
 * @property string $face_mode
 * @property int $update_db 数据库是否更新
 * @property string $update_db_path 数据库文件下载地址
 * @property int $is_credit
 * @property int $is_evaluate
 * @property int $is_doing_order
 * @property int $is_query_customer_info
 * @property int $is_fave_verify
 * @property int $is_sign_information
 * @property string $app_download_url
 */
class AndroidAppVersions extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%android_app_versions}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['v_number', 'v_title', 'notify'], 'required'],
            [['v_content', 'notify', 'interview', 'other_download_u_ids', 'black_user_list', 'white_version_list', 'app_download_url'], 'string'],
            [['status', 'update_db', 'is_credit', 'is_evaluate', 'is_doing_order', 'is_query_customer_info', 'is_fave_verify', 'is_sign_information'], 'integer'],
            [['v_number'], 'string', 'max' => 20],
            [['v_title', 'face_mode'], 'string', 'max' => 50],
            [['update_db_path'], 'string', 'max' => 200],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'v_number' => Yii::t('app', 'V Number'),
            'v_title' => Yii::t('app', 'V Title'),
            'v_content' => Yii::t('app', 'V Content'),
            'notify' => Yii::t('app', '通知信息'),
            'interview' => Yii::t('app', '面签版本列表'),
            'other_download_u_ids' => Yii::t('app', '根据uid推送'),
            'black_user_list' => Yii::t('app', '黑名单用户列表'),
            'white_version_list' => Yii::t('app', '白名单版本列表'),
            'status' => Yii::t('app', 'Status'),
            'face_mode' => Yii::t('app', 'Face Mode'),
            'update_db' => Yii::t('app', '数据库是否更新'),
            'update_db_path' => Yii::t('app', '数据库文件下载地址'),
            'is_credit' => Yii::t('app', 'Is Credit'),
            'is_evaluate' => Yii::t('app', 'Is Evaluate'),
            'is_doing_order' => Yii::t('app', 'Is Doing Order'),
            'is_query_customer_info' => Yii::t('app', 'Is Query Customer Info'),
            'is_fave_verify' => Yii::t('app', 'Is Fave Verify'),
            'is_sign_information' => Yii::t('app', 'Is Sign Information'),
            'app_download_url' => Yii::t('app', 'App Download Url'),
        ];
    }
}
